import {Map} from 'immutable';

import * as actionTypes from './constants';

const defaultState = Map({
    articleMessage:[]
})

function reducer(state = defaultState, action){
    switch(action.type) {
        case actionTypes.CHANGE_ARTICLE_MESSAGE:
            return state.set('articleMessage',action.articleMessage);
        default: 
            return state;
    }
}

export default reducer;